package bmptest.bmp.service.login;

import bmptest.bmp.entity.SysUser;
import bmptest.bmp.mapper.login.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginService {

    @Autowired
    LoginMapper loginMapper;
    public SysUser sel(String user_id){
        return loginMapper.Sel(user_id);
    }

    public Integer countUsername(String user_name){
        return loginMapper.countUsername(user_name);
    }

    public SysUser findByUsername(String user_name){
        return loginMapper.findByUsername(user_name);
    }
}
